package com.lindroy.androidplayer.viewmodels

import androidx.lifecycle.ViewModel
import com.lindroy.androidplayer.utils.SingleLiveEvent

/**
 * @author Lin
 * @date 2022/2/8
 * @function
 */
data class ProjectItemViewModel(
    val id: Int,
    val url: String,
    val chapterName: String,
    val author: String,
    val title: String,
    val desc: String,
    val date: String,
    val imageUrl: String,
    val collected: SingleLiveEvent<Boolean>,
    val itemClickAction: SingleLiveEvent<ProjectItemViewModel>
) : ViewModel() {

    fun onItemClick() {
        itemClickAction.postValue(this)
    }

    fun onCollectClick() {
    }
}